package com.etc.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TalkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TalkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Integer value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Integer value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Integer value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Integer value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Integer value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Integer> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Integer> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Integer value1, Integer value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Integer value1, Integer value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTcategoryIsNull() {
            addCriterion("tcategory is null");
            return (Criteria) this;
        }

        public Criteria andTcategoryIsNotNull() {
            addCriterion("tcategory is not null");
            return (Criteria) this;
        }

        public Criteria andTcategoryEqualTo(String value) {
            addCriterion("tcategory =", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryNotEqualTo(String value) {
            addCriterion("tcategory <>", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryGreaterThan(String value) {
            addCriterion("tcategory >", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryGreaterThanOrEqualTo(String value) {
            addCriterion("tcategory >=", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryLessThan(String value) {
            addCriterion("tcategory <", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryLessThanOrEqualTo(String value) {
            addCriterion("tcategory <=", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryLike(String value) {
            addCriterion("tcategory like", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryNotLike(String value) {
            addCriterion("tcategory not like", value, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryIn(List<String> values) {
            addCriterion("tcategory in", values, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryNotIn(List<String> values) {
            addCriterion("tcategory not in", values, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryBetween(String value1, String value2) {
            addCriterion("tcategory between", value1, value2, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTcategoryNotBetween(String value1, String value2) {
            addCriterion("tcategory not between", value1, value2, "tcategory");
            return (Criteria) this;
        }

        public Criteria andTarticleidIsNull() {
            addCriterion("tarticleid is null");
            return (Criteria) this;
        }

        public Criteria andTarticleidIsNotNull() {
            addCriterion("tarticleid is not null");
            return (Criteria) this;
        }

        public Criteria andTarticleidEqualTo(Integer value) {
            addCriterion("tarticleid =", value, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidNotEqualTo(Integer value) {
            addCriterion("tarticleid <>", value, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidGreaterThan(Integer value) {
            addCriterion("tarticleid >", value, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tarticleid >=", value, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidLessThan(Integer value) {
            addCriterion("tarticleid <", value, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidLessThanOrEqualTo(Integer value) {
            addCriterion("tarticleid <=", value, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidIn(List<Integer> values) {
            addCriterion("tarticleid in", values, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidNotIn(List<Integer> values) {
            addCriterion("tarticleid not in", values, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidBetween(Integer value1, Integer value2) {
            addCriterion("tarticleid between", value1, value2, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTarticleidNotBetween(Integer value1, Integer value2) {
            addCriterion("tarticleid not between", value1, value2, "tarticleid");
            return (Criteria) this;
        }

        public Criteria andTcontentIsNull() {
            addCriterion("tcontent is null");
            return (Criteria) this;
        }

        public Criteria andTcontentIsNotNull() {
            addCriterion("tcontent is not null");
            return (Criteria) this;
        }

        public Criteria andTcontentEqualTo(String value) {
            addCriterion("tcontent =", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentNotEqualTo(String value) {
            addCriterion("tcontent <>", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentGreaterThan(String value) {
            addCriterion("tcontent >", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentGreaterThanOrEqualTo(String value) {
            addCriterion("tcontent >=", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentLessThan(String value) {
            addCriterion("tcontent <", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentLessThanOrEqualTo(String value) {
            addCriterion("tcontent <=", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentLike(String value) {
            addCriterion("tcontent like", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentNotLike(String value) {
            addCriterion("tcontent not like", value, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentIn(List<String> values) {
            addCriterion("tcontent in", values, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentNotIn(List<String> values) {
            addCriterion("tcontent not in", values, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentBetween(String value1, String value2) {
            addCriterion("tcontent between", value1, value2, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTcontentNotBetween(String value1, String value2) {
            addCriterion("tcontent not between", value1, value2, "tcontent");
            return (Criteria) this;
        }

        public Criteria andTtopicidIsNull() {
            addCriterion("ttopicid is null");
            return (Criteria) this;
        }

        public Criteria andTtopicidIsNotNull() {
            addCriterion("ttopicid is not null");
            return (Criteria) this;
        }

        public Criteria andTtopicidEqualTo(Integer value) {
            addCriterion("ttopicid =", value, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidNotEqualTo(Integer value) {
            addCriterion("ttopicid <>", value, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidGreaterThan(Integer value) {
            addCriterion("ttopicid >", value, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ttopicid >=", value, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidLessThan(Integer value) {
            addCriterion("ttopicid <", value, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidLessThanOrEqualTo(Integer value) {
            addCriterion("ttopicid <=", value, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidIn(List<Integer> values) {
            addCriterion("ttopicid in", values, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidNotIn(List<Integer> values) {
            addCriterion("ttopicid not in", values, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidBetween(Integer value1, Integer value2) {
            addCriterion("ttopicid between", value1, value2, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTtopicidNotBetween(Integer value1, Integer value2) {
            addCriterion("ttopicid not between", value1, value2, "ttopicid");
            return (Criteria) this;
        }

        public Criteria andTUidIsNull() {
            addCriterion("t_uid is null");
            return (Criteria) this;
        }

        public Criteria andTUidIsNotNull() {
            addCriterion("t_uid is not null");
            return (Criteria) this;
        }

        public Criteria andTUidEqualTo(Integer value) {
            addCriterion("t_uid =", value, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidNotEqualTo(Integer value) {
            addCriterion("t_uid <>", value, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidGreaterThan(Integer value) {
            addCriterion("t_uid >", value, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("t_uid >=", value, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidLessThan(Integer value) {
            addCriterion("t_uid <", value, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidLessThanOrEqualTo(Integer value) {
            addCriterion("t_uid <=", value, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidIn(List<Integer> values) {
            addCriterion("t_uid in", values, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidNotIn(List<Integer> values) {
            addCriterion("t_uid not in", values, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidBetween(Integer value1, Integer value2) {
            addCriterion("t_uid between", value1, value2, "tUid");
            return (Criteria) this;
        }

        public Criteria andTUidNotBetween(Integer value1, Integer value2) {
            addCriterion("t_uid not between", value1, value2, "tUid");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeIsNull() {
            addCriterion("tcreatetime is null");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeIsNotNull() {
            addCriterion("tcreatetime is not null");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeEqualTo(Date value) {
            addCriterion("tcreatetime =", value, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeNotEqualTo(Date value) {
            addCriterion("tcreatetime <>", value, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeGreaterThan(Date value) {
            addCriterion("tcreatetime >", value, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("tcreatetime >=", value, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeLessThan(Date value) {
            addCriterion("tcreatetime <", value, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("tcreatetime <=", value, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeIn(List<Date> values) {
            addCriterion("tcreatetime in", values, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeNotIn(List<Date> values) {
            addCriterion("tcreatetime not in", values, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeBetween(Date value1, Date value2) {
            addCriterion("tcreatetime between", value1, value2, "tcreatetime");
            return (Criteria) this;
        }

        public Criteria andTcreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("tcreatetime not between", value1, value2, "tcreatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}